﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UBlockly.Compotent
{
    public struct ClassiflyItem
    {
        //分类对应icon
        public Texture2D Icon;
        //分类名字
        public string Name;

        public ClassiflyItem(string nm)
        {
            Name = nm;
            Icon = null;
        }
    }
    /// <summary>
    /// block侧栏
    /// </summary>
    public interface ISideBarHandler
    {
        //侧栏的RectTransform
        RectTransform rectTransform { get; }
        //添加到对应分类
        void AddToLeftBar(int classifly, RectTransform[] trans);
        //初始化分类信息
        void InitClassifly(ClassiflyItem[] tags);
        //获取打开的分类Id
        int? GetOpenedFloder();
        //打开对应的分类
        void OpenFloder(int classifly);
        //关闭打开的分类
        void CloseOpenedFloder();
    }
}
